package com.xu.demo.listenerPattern;

public class ListenerPattern {

    public static void main(String[] args) {

        EventManager eventManager = new EventManager();
        EventListener myListener = new MyListener();

        eventManager.registerListener(myListener);
        eventManager.triggerEvent(new Event("Hello, World!"));
    }
}
